﻿@model CMSMVC4.Coment
@if (Model != null)
{
    <div class="box paint">
            <div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
                <div class="modal-header">
                    <button type="button" class="close1" data-dismiss="modal" aria-hidden="true">
                        ×</button>
                    <h3 id="myModalLabel">Modal Heading</h3>
                </div>
                <div class="modal-body">
                    <div class="form-row control-group row-fluid">
                        <label class="control-label span3">Nội Dung<span class="help-block">Data</span>
                        </label>
                        <div class="controls span7">
                            @Html.TextAreaFor(x=>x.Data)
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <input type="button" class="btn" data-dismiss="modal" value="Close" onclick="hide()" />
                </div>
            </div>
    </div>
    
<!-- End .content -->
<a class="btn change_color_outside"><i class="paint_bucket"></i></a>
}

<script>
    $('.close1').click(function (e) {
        //hủy bỏ các link liên kết,"bỏ dấu #"
        //$("#myModal").addClass("hidden");
        e.preventDefault();
        //đóng thẻ dialog
        $("#dialog").fadeOut(500);
        //đóng thẻ nền dialog
        $("#dialog_nen").fadeOut(500);
    });
</script>
